package com.hnxxxy.common.Exception;

import lombok.extern.slf4j.Slf4j;

/**
 * @CLASSDESCRIPER:
 * @AUTHOR:suhui
 * @PHONE:13319575368
 * @EMIAL:13319575368@163.COM
 * @DATE: 2020/6/11
 * @PARAMDESCRIPER:
 * @OUTPARAMDESCRIPER:
 */
@Slf4j
public class CustomException extends RuntimeException {

    public CustomException(String message) {
        super(message);
        log.info("-->Happen Excepiton:"+message);

    }

    public CustomException(String message, Throwable cause) {
        super(message, cause);
    }

    public CustomException(Throwable cause) {
        super(cause);
    }

    public CustomException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
